package serveur;

import org.jbox2d.collision.shapes.PolygonShape;
import org.jbox2d.dynamics.BodyDef;
import org.jbox2d.dynamics.BodyType;
import org.jbox2d.dynamics.FixtureDef;

public class Mur extends Objet2D {
	
	private static float MUR_DENSITY = 1.0f;
	private static float MUR_FRICTION = 0.3f;
	
	public Mur(float posY, float posX, float hauteur, float largeur) {
		

		PolygonShape ps = new PolygonShape();
		ps.setAsBox(largeur, hauteur);

		setHauteur(hauteur);
		setLargeur(largeur);
		
		fixtureDef = new FixtureDef();
		fixtureDef.shape = ps;
		fixtureDef.density = MUR_DENSITY;
		fixtureDef.friction = MUR_FRICTION;

		bodyDef = new BodyDef();
		bodyDef.type = BodyType.STATIC;
		bodyDef.position.set(posX, posY);

	}


}
